package net.xumf.support.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "定时任务基类")
public class QuartzDTO {

    // 备注
    @ApiModelProperty(value = "备注")
    @NotBlank(message = "备注不能为空")
    private String description;
    // 定时器名称
    @ApiModelProperty(value = "任务名")
    @NotBlank(message = "任务名不能为空")
    private String jobName;
    // cron 表达式
    @ApiModelProperty(value = "cron表达式")
    @NotBlank(message = "cron表达式不能为空")
    private String cronExpression;
    // job类名
    @ApiModelProperty(value = "job类名")
    @NotBlank(message = "job类名不能为空")
    private String jobClassName;
}
